Skip to main content

TRREST_PAYLOADTRANS

This project covers all the test cases of REST trigger and payload transformer.

Sr. NoService NameDescriptionDetails
1.mapSingleRecordmapSingleRecord having GEN mapping
{
"id": 1,
"name": "John",
"city": "Pune"
}
2.mapMultipleRecordmapMultipleRecord having AR mapping
[
{
"id": 1,
"name": "John",
"city": "Pune"
}
]
3.mapArrayHaving AR mapping which returns array as output
[
{
"id": 1,
"name": "John",
"city": "Pune"
}
]
4.mapRecordQueryParamUsage of Transformer where input comes from query params using TRANS mapping, concatenate the input and return as output.
5.postRecordOBJpostRecordOBJ having OBJ mapping
{
"id": 1,
"name": "John",
"city": "Pune"
}
6.postTransUtilsUse of few inline functions: 1. Use `Strings.concat` method to concatenate 2 or more strings with an underscore `-` between them and `Utils.constant` to get a constant value. 2. Use `Strings.toUppercase` method to convert string to uppercase. 3. Use `Maths.add` method for addition of dynamic values with datatype `Number`. 4. Use `Maths.add` method for addition of static and dynamic values with datatype `Double`. 5. Use GEN with datatype `Boolean`. 6. Use `Date.DateTime` method to get the current date and time.
{
"name": "John Doe",
"num1": 123.09,
"num2": 34,
"num3": 50,
"price": 133,
"flag": true
}